package top.kaoshanji.p1ch05a;

/**
 * author kaoshanji
 * ^_^
 * create time 2025/2/17 17:50
 */
public class SizeSample {

    // 代码清单-p1ch05a-121页a：在switch语句中使用枚举
    static void onChosen(Size size) {
        switch (size) {
            case SMALL:
                System.out.println("chosen small"); break;
            case MEDIUM:
                System.out.println("chosen medium"); break;
            case LARGE:
                System.out.println("chosen large"); break;
        }
    }

}
